// 登录
export const loginQl = `
  query login($account: String!, $pin: String!, $type: AccountType!) {
    login(account: $account, pin: $pin, type: $type) {
      accessToken
      refreshToken
      expiresIn
    }
  }
`;

// 刷新 token
export const refreshTokenQl = `
  query refreshToken ($refreshToken: String!) {
    refreshToken(refreshToken: $refreshToken) {
      accessToken
      refreshToken
      expiresIn
    }
  }
`;

//查询用户信息
export const queryUserQl = `
  query user($userId: Int64!) {
    user(id: $userId) {
      id
      firstName
      lastName
      nickname
      type
      phone
      email
      avatar
      status
      createdAt
      updatedAt
    }
  }
`;